result=0
for i in range(1,967):
    if i%2==1:
       result += i 
    else:
        result -=i
print(f"数列1-2+3-4...996的和为：{result}")  
